package 数组顺序结构;

public class Solution {
    public static void main(String[] args) {          //我服了，把线性表再扩展一个单位让用户s输入size，然后让maxsize=size+1
        Animals tiger = new Animals("老虎",6); //我进行完此项操作后，问题差不多就解决了，真是的！！！！！
        Animals cat = new Animals("猫",1);
        Animals bird = new Animals("鸟",2);
        Animals dog = new Animals("狗",3);

        ArrayList list = new ArrayList(3);
        list.orderInsert(tiger);
        list.orderInsert(cat);
        list.orderInsert(bird);

        System.out.println(list.valueOfLength());

        System.out.println("////////////");

        list.deleteData(0);
        System.out.println(list.valueOfLength());
        list.addData(2,tiger);
        System.out.println(list.valueOfLength());

        System.out.println("//////////");

        list.clean();
        System.out.println(list.valueOfLength());

    }
}
